package models;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

public class MessageQueue {
	@Id private String id = ""; //Id = autoSiteId + "-" + url;
	
	@Unindexed private String url = "";
	
	@Indexed private Boolean isDone = false;
	
	@Unindexed private String autoSiteId = "";

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String createId() {
		return autoSiteId + "-" + url;
	}
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Boolean getIsDone() {
		return isDone;
	}

	public void setIsDone(Boolean isDone) {
		this.isDone = isDone;
	}

	public String getAutoSiteId() {
		return autoSiteId;
	}

	public void setAutoSiteId(String autoSiteId) {
		this.autoSiteId = autoSiteId;
	}
	
	
}
